import dateformat from 'dateformat'
// 把时间戳转化为时间
const judgeTime = (date) => {
  if (date) {
    let dateTime = new Date(date)
    let date2 = dateformat(dateTime, 'yyyy-mm-dd HH:MM:ss')
    return date2
  } else {
    return date
  }
}

export default judgeTime
